package cn.com.cennavi.bean;

import java.io.Serializable;

/**
 * 数据初步筛选结果
 * 
 * @ClassName: GpsOrigInfo
 * @Description: TODO（这里用一句话描述这个类的作用）
 * @author bull
 * @date 2016年2月25日 上午11:47:36
 *
 */
public class GpsOrigInfo  implements Serializable{

	private static final long serialVersionUID = 1L;
	public String rowkey;
	public String gpsInfo;
	//每一个gps点对应的link序列
	public String linkStr;
	public String oTime;
	public String dTime;
	public String difPoint;
	public String roadId;
	public String dir;
	public String enterSeq;
	public String pointDisSeq;
	public String difLinks;
	public GpsOrigInfo getGpsOrigInfo(String line) {
		String[] arr = line.split(",");
		if(arr.length!=10){
			return null;
		}
		GpsOrigInfo goi = new GpsOrigInfo();
		goi.rowkey = arr[0];
		goi.gpsInfo = arr[1];
		goi.linkStr = arr[2];
		goi.oTime = arr[3];
		goi.dTime = arr[4];
		goi.difPoint = arr[5];
		goi.roadId = arr[6];
		goi.dir = arr[7];
		goi.enterSeq = arr[8];
		goi.difLinks = arr[9];
		return goi;
	}

	public static GpsOrigInfo getGpsOrigInfo1(String line) {
		String[] arr = line.split(",");
		GpsOrigInfo goi = new GpsOrigInfo();
		goi.rowkey = arr[0];
		goi.gpsInfo = arr[1];
		goi.linkStr = arr[2];
		goi.oTime = arr[3];
		goi.dTime = arr[4];
		goi.difPoint = arr[5];
		goi.roadId = arr[6];
		goi.dir = arr[7];
		goi.enterSeq = arr[8];
		goi.pointDisSeq = arr[9];
		return goi;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.rowkey);
		sb.append(",");
		sb.append(this.gpsInfo);
		sb.append(",");
		sb.append(this.linkStr);
		sb.append(",");
		sb.append(this.oTime);
		sb.append(",");
		sb.append(this.dTime);
		sb.append(",");
		sb.append(this.difPoint);
		sb.append(",");
		sb.append(this.roadId);
		sb.append(",");
		sb.append(this.dir);
		sb.append(",");
		sb.append(this.enterSeq);
		sb.append(",");
		sb.append(this.pointDisSeq);
		return sb.toString();

	}
	public String toString1() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.rowkey);
		sb.append(",");
		sb.append(this.gpsInfo);
		sb.append(",");
		sb.append(this.linkStr);
		sb.append(",");
		sb.append(this.oTime);
		sb.append(",");
		sb.append(this.dTime);
		sb.append(",");
		sb.append(this.difPoint);
		sb.append(",");
		sb.append(this.roadId);
		sb.append(",");
		sb.append(this.dir);
//		sb.append(",");
//		sb.append(this.enterSeq);
//		sb.append(",");
//		sb.append(this.pointDisSeq);
		return sb.toString();

	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
